//    Copyright (C) Kherty.  All rights reserved.
using System;
using System.Collections.Generic;
using System.Globalization;

namespace OpenLS.Spreadsheet.UI
{
    static class StandardStringAutoFillFunctions
    {
        public static IEnumerable<List<string>> GetAll()
        {
            yield return getMonthNames();
            yield return getShortMonthNames();
            yield return getDayNames();
            yield return getShortDayNames();
        }
        static List<string> getMonthNames()
        {
            var result = new List<string>();
            for (int i = 1; i < 13; i++)
                result.Add(CultureInfo.CurrentCulture.DateTimeFormat.GetMonthName(i));
            return result;
        }
        static List<string> getShortMonthNames()
        {
            var result = new List<string>();
            for (int i = 1; i < 13; i++)
                result.Add(CultureInfo.CurrentCulture.DateTimeFormat.GetAbbreviatedMonthName(i));
            return result;
        }
        static List<string> getDayNames()
        {
            var result = new List<string>();
            foreach (DayOfWeek w in Enum.GetValues(typeof (DayOfWeek)))
                result.Add(CultureInfo.CurrentCulture.DateTimeFormat.GetDayName(w));
            return result;
        }
        static List<string> getShortDayNames()
        {
            var result = new List<string>();
            foreach (DayOfWeek w in Enum.GetValues(typeof(DayOfWeek)))
                result.Add(CultureInfo.CurrentCulture.DateTimeFormat.GetAbbreviatedDayName(w));
            return result;
        }


    }
}